package demo1;

interface IA{
    void textA();

}
interface IB{
    void textB();
}
class Demo2 implements IA ,IB{

    @Override
    public void textA() {
        System.out.println("textA");
    }

    @Override
    public void textB() {
        System.out.println("textB");
    }
}
public class Text2 {
    public static void main(String[] args) {
        Demo2 demo=new Demo2();
        demo.textA();
        demo.textB();
    }
}
